<html>
<head><meta charset="utf-8"><title>lint groups · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html">lint groups</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="151390513"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151390513" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151390513">(Dec 10 2018 at 19:14)</a>:</h4>
<p>is it possible to define a lint group in librustc? i want to take the rustdoc lints and group them together</p>



<a name="151390669"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151390669" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151390669">(Dec 10 2018 at 19:17)</a>:</h4>
<p>Lint groups are defined in <a href="https://github.com/rust-lang/rust/blob/1137d29d5e551e377579c5a601fe7c444057d00c/src/librustc_lint/lib.rs#L163" target="_blank" title="https://github.com/rust-lang/rust/blob/1137d29d5e551e377579c5a601fe7c444057d00c/src/librustc_lint/lib.rs#L163">https://github.com/rust-lang/rust/blob/1137d29d5e551e377579c5a601fe7c444057d00c/src/librustc_lint/lib.rs#L163</a></p>



<a name="151390672"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151390672" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151390672">(Dec 10 2018 at 19:17)</a>:</h4>
<p>Is that what you were looking for?</p>



<a name="151390777"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151390777" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151390777">(Dec 10 2018 at 19:18)</a>:</h4>
<p>i guess so - it's possible to just make a new group there, and source all the actual lints from <code>librustc</code> instead of <code>librustc_lint</code>?</p>



<a name="151393974"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151393974" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151393974">(Dec 10 2018 at 19:43)</a>:</h4>
<p>eh, that's what i wound up doing</p>



<a name="151394077"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151394077" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151394077">(Dec 10 2018 at 19:44)</a>:</h4>
<p>on a related note, how do tool lints work? I realized that we could just move these lints into tool lints as well (though we'd break people who are already using those lint names <code>&gt;_&gt;</code>)</p>



<a name="151427698"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151427698" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151427698">(Dec 11 2018 at 07:13)</a>:</h4>
<p>no need to break them. We already have a renaming scheme</p>



<a name="151427704"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151427704" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151427704">(Dec 11 2018 at 07:13)</a>:</h4>
<p>You probably need an RFC for a new tool lint name</p>



<a name="151449620"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151449620" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151449620">(Dec 11 2018 at 14:35)</a>:</h4>
<p>nah, <code>rustdoc</code> was already pre-reserved in the original tool attributes RFC</p>



<a name="151449767"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20groups/near/151449767" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20groups.html#151449767">(Dec 11 2018 at 14:37)</a>:</h4>
<p>ah perfect</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>